#pragma once
using namespace System;

namespace SocketNet {
	public delegate void CallFuncStateChange(int ClientID, int code);
	public delegate void FuncReadCallBack(int ClientID,array<wchar_t>^ data,int len);
	public delegate void _ReadCallBack(int ClientID, int len);
}
ref class Clink {
public:
	Clink();
public:
	void OnFuncStateChange(int id, int code);
	void OnFuncReadCallBack(int id,int len);
public:
	SocketNet::CallFuncStateChange ^ m_pFuncChange = nullptr;
	SocketNet::FuncReadCallBack^ m_pFuncRead = nullptr;
	String^ m_cache;
	int m_maxSize = 2048;
};